package com.ecity.events 
{
	import com.ecity.util.HashMap;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author yicheng.zhang
	 */
	public class GameEvent extends Event {
		
		public static const SAMULATOR_CLICK:String = "SAMULATOR_CLICK";
		public static const BACKGROUND_INITED:String = "BACKGROUND_INITED";
		public static const REQ_GAME_START:String = "REQ_GAME_START";
		public static const REQ_RESTART:String = "REQ_RESTART";
		public static const REQ_SHAKEBOX:String = "REQ_SHAKEBOX";
		public static const SCORE_RESPONES:String = "SCORE_RESPONES";
		public static const REQ_OPENBOX:String = "REQ_OPENBOX";
		public static const RES_COMPLETE:String = "RES_COMPLETE";
		public static const DATA_TRANSLATED:String = "DATA_TRANSLATED";
		
		public var _info:Object;
		public var infoMap:HashMap;
		
		public function GameEvent(type:String,info:Object=null,infoMap:HashMap=null,bubbles:Boolean=false,cancelable:Boolean=false){
			super(type, bubbles, cancelable);
			_info = info;
			this.infoMap = infoMap;
		}
		
		public override function clone():Event {
			return new GameEvent(type,_info,infoMap,bubbles, cancelable);
		}
	}

}